package com.jianbing.zuixia.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.zuixia.mapper.ZuixiaCoinsMapper;
import com.jianbing.zuixia.domain.ZuixiaCoins;
import com.jianbing.zuixia.service.IZuixiaCoinsService;

/**
 * 最下金币记录Service业务层处理
 * 
 * @author wyj
 * @date 2024-07-10
 */
@Service
public class ZuixiaCoinsServiceImpl implements IZuixiaCoinsService 
{
    @Autowired
    private ZuixiaCoinsMapper zuixiaCoinsMapper;

    /**
     * 查询最下金币记录
     * 
     * @param id 最下金币记录主键
     * @return 最下金币记录
     */
    @Override
    public ZuixiaCoins selectZuixiaCoinsById(Long id)
    {
        return zuixiaCoinsMapper.selectZuixiaCoinsById(id);
    }

    /**
     * 查询最下金币记录列表
     * 
     * @param zuixiaCoins 最下金币记录
     * @return 最下金币记录
     */
    @Override
    public List<ZuixiaCoins> selectZuixiaCoinsList(ZuixiaCoins zuixiaCoins)
    {
        return zuixiaCoinsMapper.selectZuixiaCoinsList(zuixiaCoins);
    }

    /**
     * 新增最下金币记录
     * 
     * @param zuixiaCoins 最下金币记录
     * @return 结果
     */
    @Override
    public int insertZuixiaCoins(ZuixiaCoins zuixiaCoins)
    {
        return zuixiaCoinsMapper.insertZuixiaCoins(zuixiaCoins);
    }

    /**
     * 修改最下金币记录
     * 
     * @param zuixiaCoins 最下金币记录
     * @return 结果
     */
    @Override
    public int updateZuixiaCoins(ZuixiaCoins zuixiaCoins)
    {
        return zuixiaCoinsMapper.updateZuixiaCoins(zuixiaCoins);
    }

    /**
     * 批量删除最下金币记录
     * 
     * @param ids 需要删除的最下金币记录主键
     * @return 结果
     */
    @Override
    public int deleteZuixiaCoinsByIds(Long[] ids)
    {
        return zuixiaCoinsMapper.deleteZuixiaCoinsByIds(ids);
    }

    /**
     * 删除最下金币记录信息
     * 
     * @param id 最下金币记录主键
     * @return 结果
     */
    @Override
    public int deleteZuixiaCoinsById(Long id)
    {
        return zuixiaCoinsMapper.deleteZuixiaCoinsById(id);
    }
}
